@extends("backend.layout.main")

@section("right_content")

<div class="mainWrapBox">
    <div class="mainBox">
		<div class="html">
			<div class="body">
				<div class="pro_main">
				<div class="infor_mian">


				<!--right-->
				<form action="/backend/personal" id="frmPerson" method="post">
     {{csrf_field()}}
               <input type="hidden" name = "parm" value="info">
                    <div class="info_right">
                        <div class="info_rights_title">
                            个人资料
                        </div>

                        <table style="margin-top:20px;" class="xiansuo_add left">
                            <tbody>
                                <tr>
                                    <td width="100" align="right" class="padd-right10">头像</td>
                                    <td class="xiansuo_add_sc" style="position: relative; z-index:0;">
									<div id="divSrc"  style="border:1px solid #999999;width:100px;height:100px;background:url('{{ $Member->img  }}') center center no-repeat; background-size:100%,100%;" />
										
										

                                    <input id="photo" type="hidden" name="user.photo"
										value="/upload/2015/10/23/d443f829-0ae4-47cc-b1e8-90c4515a7894.jpg" />

									<input  type="hidden" name="user.id"
										value="{{ $Member->uid }}" />
                                    </td>
                                </tr>


                                <tr>
                                    <td width="100" align="right"  class="padd-right10">邮箱</td>
                                    <td class="xiansuo_add_sc">
                                        <div class="xiansuo_vbs">
                                            <input type="text" readonly="readonly" value="{{ $Member->email }}" style="background:#e4e4e4" class="xiansuo_inss width370">
                                        </div>
                                    </td>
                                </tr>

                                <tr>
                                    <td width="100" align="right"  class="padd-right10">用户名</td>
                                    <td class="xiansuo_add_sc">
                                        <input type="text"  name = "user.username" value="{{ $Member->username }}"  class="xiansuo_inss width200 left mr10">
                                    </td>
                                </tr>

                                <tr>
                                    <td width="100" align="right"  class="padd-right10">性别</td>
                                    <td class="xiansuo_add_sc">
                                        <input type="radio" value="0" name="user.sex"  {{$Member->sex == 0 ? 'checked':''}} />男
                                        <input type="radio" value="1" name="user.sex" {{$Member->sex == 1 ? 'checked':''}} />女
                                    </td>
                                </tr>
                                <tr>
                                    <td width="100" align="right"  class="padd-right10">手机</td>
                                    <td class="xiansuo_add_sc">
                                        <input type="text" onkeyup="this.value=this.value.replace(/\D/g,'')" onafterpaste="this.value=this.value.replace(/\D/g,'')"   name="user.mobile" value="{{ $Member->phone }}" class="xiansuo_inss width200">
                                    </td>
                                </tr>

                                <tr>
                                    <td width="100" class="padd-right10" align="right" >微信</td>
                                    <td class="xiansuo_add_sc" style="padding-left: 10px;">
                                        <input type="text" readonly="readonly" value="{{ $Member->wechat }}" name="user.wechat" id="wechat" class="xiansuo_inss width200" style="background:#e4e4e4"/>
                                    </td>
                                </tr>
                                <tr>
                                    <td width="100" class="padd-right10" align="right" >生日</td>
                                    <td class="jueszu_tab_s" style="padding-left: 10px;">
                                        <input type="date" onfocus="WdatePicker({maxDate:'%y-%M-%d'})"
                                               value="{{ date('Y-m-d',$Member->birthday) }}" name="user.birthday" 
                                               class="xiansuo_inss width200"/>
                                    </td>
                                </tr>

                                <tr>
                                    <td width="100" align="right"  class="padd-right10">&nbsp;</td>
                                    <td class="xiansuo_add_sc">
                                        <input type="submit" value="保存" class="tank_tab_add left">
                                    </td>
                                </tr>
                            </tbody>

                        </table>
                        <div class="cl"></div>
                    </div>
                   </form>
				<!--right-->

				</div>
				<div class="cl"></div>
				</div>
			</div>
		</div>
	</div>
</div>
@endsection